package yuyi;

/**
 * @创建人 MBY381
 * @创建时间 2022/6/25 14:42
 * @描述 暂无
 */
public class SemanticException extends Throwable {
    private int lineNum;
    private int colNum;
    private String string;

    public SemanticException(int lineNum, int colNum, String str) {
        super();
        this.lineNum = lineNum;
        this.colNum = colNum;
        this.string = str;
    }

    @Override
    public String toString() {
        return "ExceptionOfNote:" + "第" + lineNum + "行,第" + colNum + "列:"+string;
    }
}
